import request from '@/utils/request'

// 获取医院下的科室列表
export function getDepartmentsByHospitalId(hospitalId) {
  return request({
    url: `/api/departments/hospital/${hospitalId}`,
    method: 'get'
  })
}

// 获取科室详情
export function getDepartmentById(id) {
  return request({
    url: `/api/departments/${id}`,
    method: 'get'
  })
}

// 获取科室下的医生列表
export function getDoctorsByDepartmentId(departmentId) {
  return request({
    url: `/api/doctors/department/${departmentId}`,
    method: 'get'
  })
} 